import request from '@/utils/request.js'

// 修改用户头像

const updateUserPhoto = (data)=>{
    return request({
        method: 'patch',
        url:'/mp/v1_0/user/photo',
        data
    })
}

// 获取用户资料

const getUserInfo =  () =>{
    return request.get('/mp/v1_0/user/profile')
}

// 编辑用户资料

const updateUserInfo = (userInfo) =>{
    return request.patch('/mp/v1_0/user/profile',userInfo)
}
export {
    updateUserPhoto,
    getUserInfo,
    updateUserInfo
    
}